var bg = chrome.extension.getBackgroundPage();

$(function(){
    $('#market').val(window.localStorage.market);
    $('#code').val(window.localStorage.code);
    $('#upPrice').val(window.localStorage.upPrice);
    $('#lowPrice').val(window.localStorage.lowPrice);
    $('#info').html(bg.buildInfo());
	$('#priceBtn').click(function () {
        window.localStorage.market = $('#market').val();
        window.localStorage.code = $('#code').val();
        window.localStorage.lowPrice = $('#lowPrice').val();
        window.localStorage.upPrice = $('#upPrice').val();
    });
});
